package com.story.server;

import com.story.api.UserService;
import com.story.rpc.config.RpcServiceConfig;
import com.story.rpc.transmission.RpcServer;
import com.story.rpc.transmission.socket.server.SocketRpcServer;
import com.story.server.service.UserServiceImpl;

/**
 * Hello world!
 *
 */
public class Main
{
    public static void main( String[] args )
    {
        RpcServiceConfig config = new RpcServiceConfig(new UserServiceImpl());
        RpcServer rpcServer = new SocketRpcServer(8888) ;
        rpcServer.pulishService(config);
        rpcServer.start();

    }
}
